<ul id="user_field_manage_list" class="am-list" style="margin-top:-1px">
    <?php $i = 1;
    foreach ($userFields as $field) { ?>
        <li style="padding: 15px 20px" data-id="<?= $field->Id ?>">
            <div style="display: inline-block" onclick="user_field_edit(11,<?= $field->Id ?>)">
                <b style="display: inline-block; min-width: 28px" class="app-gray2-color"><?= $i ?></b>
                <b class="<?php if ($field->ViewState == 1) echo 'app-main-color'; else echo 'app-gray-color' ?>">
                    <?= $field->FieldName2 ?>
                </b>
            </div>
            <div data-edit-view="view" class="am-fr">
            <span class="<?php if ($field->ViewState == 1) echo 'app-main-color'; else echo 'app-gray-color' ?>"
                  style="text-align: right; margin-right: 10px">
                <?= $field->WorksCount2 ?>
            </span>
                <i class="am-icon-angle-right app-gray-color"></i>
            </div>
            <div data-edit-view="dele" class="app-check-box am-fr"
                 style="display: none"
                 onclick="app_check_box(this, user_field_dele_sele)">
                <i data-id="<?= $field->Id ?>"
                   class="am-icon-square-o app-gray-color am-icon-fw app-check-box-icon"></i>
            </div>
        </li>
        <?php $i++;
    } ?>
</ul>
<div style="height:37px"></div>